package com.projectName.www.dao;

import com.projectName.www.po.shop;
import com.projectName.www.util.String_util;

public class S_J_insertshop_dao {
    public static  boolean insertshop(shop s) throws Exception {

        if(String_util.isEmpty(s.getName())){
            return false;
        }
        String sql="insert ignore into shop(name,description,shopkeeper) values(?,?,?)";
        int i=BaseDao.executeUpdata(sql,s.getName(),s.getDescription(),s.getShopkeeper());

        if(i>0){return true;}
        else {
            return false;
        }

    }
}
